<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\OrderInfo
 *
 * @property int $order_id
 * @property string $order_sn
 * @property int $user_id
 * @property int $order_status
 * @property int $shipping_status
 * @property int $pay_status
 * @property string $consignee
 * @property int $country
 * @property int $province
 * @property int $city
 * @property int $district
 * @property string $address
 * @property string $zipcode
 * @property string $tel
 * @property string $mobile
 * @property string $email
 * @property string $best_time
 * @property string $sign_building
 * @property string $postscript
 * @property int $shipping_id
 * @property string $shipping_name
 * @property int $pay_id
 * @property string $pay_name
 * @property string $how_oos
 * @property string $how_surplus
 * @property string $pack_name
 * @property string $card_name
 * @property string $card_message
 * @property string $inv_payee
 * @property string $inv_content
 * @property string $goods_amount
 * @property string $shipping_fee
 * @property string $insure_fee
 * @property string $pay_fee
 * @property string $pack_fee
 * @property string $card_fee
 * @property string $goods_discount_fee 对接erp专用，商品优惠总金额
 * @property string $money_paid
 * @property string $surplus
 * @property int $integral
 * @property string $integral_money
 * @property string $bonus
 * @property string $order_amount
 * @property int $from_ad
 * @property string $referer
 * @property int $add_time
 * @property int $confirm_time
 * @property int $pay_time
 * @property int $shipping_time
 * @property int $pack_id
 * @property int $card_id
 * @property int $bonus_id
 * @property string $invoice_no
 * @property string $extension_code
 * @property int $extension_id
 * @property string $to_buyer
 * @property string $pay_note
 * @property int $agency_id
 * @property string $inv_type
 * @property string $tax
 * @property string|null $tax_num 纳税人识别号
 * @property int $is_separate
 * @property int $parent_id
 * @property string $discount
 * @property string|null $callback_status
 * @property int $lastmodify
 * @property string|null $apply_for_status 是否申请退换货
 * @property string|null $platform
 * @property int $order_type
 * @property int $pt_id 相互拼团的订单ID
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo query()
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereAddTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereAddress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereAgencyId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereApplyForStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereBestTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereBonus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereBonusId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereCallbackStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereCardFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereCardId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereCardMessage($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereCardName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereCity($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereConfirmTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereConsignee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereCountry($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereDiscount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereDistrict($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereEmail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereExtensionCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereExtensionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereFromAd($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereGoodsAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereGoodsDiscountFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereHowOos($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereHowSurplus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereInsureFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereIntegral($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereIntegralMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereInvContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereInvPayee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereInvType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereInvoiceNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereIsSeparate($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereLastmodify($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereMobile($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereMoneyPaid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereOrderAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereOrderId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereOrderSn($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereOrderStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereOrderType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePackFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePackId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePackName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereParentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePayFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePayId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePayName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePayNote($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePayStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePayTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePlatform($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePostscript($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereProvince($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo wherePtId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereReferer($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereShippingFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereShippingId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereShippingName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereShippingStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereShippingTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereSignBuilding($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereSurplus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereTax($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereTaxNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereTel($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereToBuyer($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|OrderInfo whereZipcode($value)
 * @mixin \Eloquent
 */
class OrderInfo extends Model
{
    protected $table = 'order_info';
    protected $primaryKey = 'order_id';
    protected $fillable = [
        'order_id', 'order_sn', 'user_id', 'order_status', 'shipping_status', 'pay_status', 'consignee',
        'country', 'province', 'city', 'district', 'address', 'zipcode', 'tel', 'mobile', 'email', 'best_time',
        'sign_building', 'postscript', 'shipping_id', 'shipping_name', 'pay_id', 'pay_name', 'how_oos',
        'how_surplus', 'pack_name', 'card_name', 'card_message', 'inv_payee', 'inv_content', 'goods_amount',
        'shipping_fee', 'insure_fee', 'pay_fee', 'pack_fee', 'card_fee', 'goods_discount_fee', 'money_paid',
        'surplus', 'integral', 'integral_money', 'bonus', 'order_amount', 'from_ad', 'referer', 'add_time',
        'confirm_time', 'pay_time', 'shipping_time', 'pack_id', 'card_id', 'bonus_id', 'invoice_no',
        'extension_code', 'extension_id', 'to_buyer', 'pay_note', 'agency_id', 'inv_type', 'tax',
        'tax_num', 'is_separate', 'parent_id', 'discount', 'callback_status', 'lastmodify',
        'apply_for_status', 'platform', 'order_type', 'pt_id'
    ];

    public $timestamps = false;
}
